@extends('layouts.default')

@section('content')
	<header class="sponsored-ad">
		<section id="content">
			<form role="form" method="POST" action="{{ url('/auth/register') }}">
				<h1>Sign Up</h1>
				@if (count($errors) > 0)
					<div class="alert alert-danger">
						<strong>Whoops!</strong> There were some problems with your input.<br><br>
						<ul>
							@foreach ($errors->all() as $error)
								<li>{{ $error }}</li>
							@endforeach
						</ul>
					</div>
				@endif

				<input type="hidden" name="_token" value="{{ csrf_token() }}">
				<div>
					<input type="text" placeholder="Username" name="username" required id="username" />
				</div>
				<div>
					<input type="email" placeholder="Email" name="email" required id="email" />
				</div>
				<div>
					<input type="text" placeholder="Name" name="name" id="name" />
				</div>
				<div>
					<input type="text" placeholder="Company" name="company" id="company" />
				</div>
				<div>
					<input type="password" placeholder="Password" name="password" required="" id="password" required />
				</div>
				<div>
					<input type="password" placeholder="Password Confirm" name="password_confirmation" required="" id="password_confirm" required />
				</div>
				<div>
					<input type="submit" value="Sign Up" />
					<a href="/password/email">Lost your password?</a>
					<a href="/auth/register">Register</a>
				</div>
			</form><!-- form -->

		</section><!-- content -->
	</header>
@endsection
